
package cs.ohms.subsystem.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.Optional;

/**
 */
@Repository
public interface ResourceRepository extends JpaRepository<ResourceEntity, String>, JpaSpecificationExecutor<ResourceEntity> {
    Optional<ResourceEntity> findByIdAndUser(String id, UserEntity user);

    Optional<ResourceEntity> findByIdAndSuffix(String id, String suffix);
}
